package com.banch.cloud.sentinel.service;

import com.banch.cloud.common.entity.Payment;
import com.banch.cloud.common.vo.CommonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;


@FeignClient(value = "nacos-payment-provider")
public interface PaymentService {

    @GetMapping(value = "/sentinel/paymentSQL/{id}")
    CommonResult<Payment> paymentSQL(@PathVariable("id") Long id);

}
